home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / micommnt.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  3KB  |  143 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    commentdialogId ;
  9. extern int    commentId ;
  10. extern int    commentbtnId[2] ;
  11. extern int    igo_commentset() ;
  12. extern int    igo_commentcancel() ;
  13. extern int    comment_messageId[3] ;
  14.  
  15. #define ALIGN    4
  16. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  17.  
  18. /*    MMI_init 用データ    */
  19.  
  20. /*    ヘッダ    */
  21.  
  22. MMIINIT    initDataMICOMMNT = { "MmiInit",   7, 0 } ;
  23.  
  24. /* commentdialogId */
  25.  
  26. static MMIPACKET d001 = {    &commentdialogId,
  27.                             NULL,
  28.                             &MJ_DIALOGL40,
  29.                             OFFSET(DIALOGL40),
  30.                             MS_NONE
  31.                         } ;
  32. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  33.                              191,  71, 438, 366, 8, 7, 8,
  34.                             MS_SRECTL40 | MS_FRAMEL40,
  35.                             NULL,   0,   0
  36.                         } ;
  37.  
  38. /* commentId */
  39.  
  40. static MMIPACKET d002 = {    &commentId,
  41.                             &commentdialogId,
  42.                             &MJ_TEXTL40,
  43.                             OFFSET(TEXTL40),
  44.                             MS_NONE
  45.                         } ;
  46. static TEXTL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
  47.                              198,  99, 429, 323, 8,15, 8,
  48.                             MS_FRAMEL40,
  49.                             0,
  50.                                0,   0,   0,   0,
  51.                                0,   0,   0,   0,   0,
  52.                                  256,   0,   0,
  53.                                0,   0,   0,   0,
  54.                                0,
  55.                                0,   0,   0,   0,
  56.                                1,  12,  12,   0,   0,
  57.                                0,   0,   0,   0,   0,   0,   0,
  58.                                0,   0,   0,   0,
  59.                               24
  60.                         } ;
  61.  
  62. /* commentbtnId[0] */
  63.  
  64. static MMIPACKET d003 = {    &commentbtnId[0],
  65.                             &commentdialogId,
  66.                             &MJ_DBUTTONL40,
  67.                             OFFSET(DBUTTONL40),
  68.                             MS_NONE
  69.                         } ;
  70. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  71.                              222, 330, 301, 355, 4, 7, 8,
  72.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  73.                             igo_commentset,
  74.                             0x0000
  75.                         } ;
  76.  
  77. /* commentbtnId[1] */
  78.  
  79. static MMIPACKET d004 = {    &commentbtnId[1],
  80.                             &commentdialogId,
  81.                             &MJ_DBUTTONL40,
  82.                             OFFSET(DBUTTONL40),
  83.                             MS_NONE
  84.                         } ;
  85. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  86.                              324, 329, 403, 354,10, 7, 8,
  87.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  88.                             igo_commentcancel,
  89.                             0x0000
  90.                         } ;
  91.  
  92. /* comment_messageId[0] */
  93.  
  94. static MMIPACKET d005 = {    &comment_messageId[0],
  95.                             &commentdialogId,
  96.                             &MJ_MSGL40,
  97.                             OFFSET(MSGL40),
  98.                             MS_NONE
  99.                         } ;
  100. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  101.                              231,  74, 390,  97, 8,15, 8,
  102.                             MS_NONEL40,
  103.                             "コメント",
  104.                                1,  12,  12,
  105.                             MS_NONEL40,
  106.                                5,   0
  107.                         } ;
  108.  
  109. /* comment_messageId[1] */
  110.  
  111. static MMIPACKET d006 = {    &comment_messageId[1],
  112.                             &commentdialogId,
  113.                             &MJ_MSGL40,
  114.                             OFFSET(MSGL40),
  115.                             MS_NONE
  116.                         } ;
  117. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  118.                              228, 332, 295, 352, 8,15, 8,
  119.                             MS_NONEL40,
  120.                             "設定",
  121.                                1,  12,  12,
  122.                             MS_NONEL40,
  123.                                5,   0
  124.                         } ;
  125.  
  126. /* comment_messageId[2] */
  127.  
  128. static MMIPACKET d007 = {    &comment_messageId[2],
  129.                             &commentdialogId,
  130.                             &MJ_MSGL40,
  131.                             OFFSET(MSGL40),
  132.                             MS_NONE
  133.                         } ;
  134. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  135.                              329, 331, 396, 351, 8,15, 8,
  136.                             MS_NONEL40,
  137.                             "取消",
  138.                                1,  12,  12,
  139.                             MS_NONEL40,
  140.                                5,   0
  141.                         } ;
  142.  
  143.